package com.lyh.model;

import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

public class User {
	private int id;
	private String name;
	private Date birth;
	private UserStatusEnum status;

	public int getId() {
		return id;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", birth=" + birth
				+ ", status=" + status + "]";
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@JsonSerialize(using = JsonDateSerializer.class)
	public Date getBirth() {
		return birth;
	}

	@JsonDeserialize(using = JsonDateDeserializer.class)
	public void setBirth(Date birth) {
		this.birth = birth;
	}

	public UserStatusEnum getStatus() {
		return status;
	}

	public void setStatus(UserStatusEnum status) {
		this.status = status;
	}

}
